package com.hornsun.util;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;


/**
 * Created by 编译中... on 2018/4/25.
 */
@Component
public class LittleUtil {

    public static RowBounds rowBounds(int page,int limit){
        int offset = (page-1)*limit;
        return new RowBounds(offset,limit);
    }


}
